// let online=1;//是否是线上 1 是 ，0不是
// // online=0
// // export const baseURL = online ? "https://shsim.ctrlikun.com" : "http://127.0.0.1:3000";
// // export const imageNowIP =online ? "https://imageserve.ctrlikun.com" : "http://127.0.0.1:8081";
// // export const socketNowIP = online ? "wss://shsim.ctrlikun.com/ws/" : "ws://127.0.0.1:3000/ws/"

// export const baseURL = online ? "https://shsim.ctrlikun.com" : "http://192.168.31.78:3000";
// export const imageNowIP =online ? "https://imageserve.ctrlikun.com" : "http://192.168.31.78:8081";
// export const socketNowIP = online ? "wss://shsim.ctrlikun.com/ws/" : "ws://192.168.31.78:3000/ws/"
// //401token报错弹窗设置 报错次数 only one
// export const confirmCconfig = {
// 	isTure: true
// }


// 判断是否是线上环境，通过环境变量 NODE_ENV 来判断
const isProduction = process.env.NODE_ENV === "production";

// 根据环境变量动态设置 baseURL、imageNowIP 和 socketNowIP
export const baseURL = isProduction 
  ? "https://shsim.ctrlikun.com" 
  : "http://192.168.31.78:3000";

export const imageNowIP = isProduction 
  ? "https://imageserve.ctrlikun.com" 
  : "http://192.168.31.78:8081";

export const socketNowIP = isProduction 
  ? "wss://shsim.ctrlikun.com/ws/" 
  : "ws://192.168.31.78:3000/ws/";

// 401 token 报错弹窗设置
export const confirmCconfig = {
  isTure: true
};